package com.study.bigwork.like.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.study.bigwork.entity.Like;
import com.study.bigwork.like.dao.LikeDao;

@Service
@Transactional(readOnly=false)
public class LikeService {
	@Resource
	private LikeDao likeDao;
	public List<Like> getLikes(){
		return likeDao.getLikes();
	}
	public void deleteLike(int id) {
		likeDao.deleteLike(id);
	}
	public void addLike(int userid,int circleid) {
		likeDao.addLike(userid, circleid);
	}
	public void changeLikeSize(int circleid,int count) {
		likeDao.changeLikeSize(circleid, count);
	}
}
